package cn.com.shopec.erp.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: Defective
 * @Description: 次品退换货实体类
 * @author: LiangShunWang
 * @date 2016-11-21 下午14:44:49
 * 
 */
@Entity
@Table(name = "TBL_DEFECT_REPLCE")
public class DefectReplce implements Serializable {
	
	private static final long serialVersionUID = -7530599440348653900L;
	/** id **/
	private String id;
	/**退换货编号 **/
	private String defectReplceId;
	/**退换货名称**/
	private String defectReplceName;
	/**退换货类型**/
	private String returnType;
	/** 业务类型 (1.退货2.换货)**/
	private String replceType;
	/** 处理状态 **/
	private String processState;
	/** 供应商编号 **/
	private String supCode;
	/** 供应商名称 **/
	private String supName;
	/** 审核人**/
	private String auditor;
	/** 创建时间 **/
	private String createTime;
	/** 发起人 **/
	private String initiater;
	/** 发起时间**/
	private String initiateTime;
	/** 商品描述 **/
	private String proDesc;
	/** 删除标志 **/
    private Integer deleteFlag;
    /**退换货原因**/
    private String reasonsReturn;
    private String defectiveReason;
    /**退换货描述**/
    private String description;
    /** 仓库号 **/
	private String whNo;
	/** 仓库名称 **/
	private String whName;
	/** 货品编号 **/
	private String prodNo;
	/** 商品编号 **/
	private String commoNo;
	/** 商品名称 **/
	private String commoName;
	/** 出库时间 **/
	private String outWarehouseTime;
	/** 入库时间 **/
	private String storageTime;
	/** 规格信息 **/
    private String specification;
    /** 规格名称 **/
    private String  specName;
    /** 货品条码 **/
    private String prodBarCode;
    /** 次品数量 **/
	private String defectiveNumber;
	 /** 采购单号 **/
	private String poNo;
	/** 采购单商品库存关系表id**/
	private String spNo;
	/** 次品id**/
	private String deNo;
    
	public DefectReplce(){}

	public DefectReplce(String id, String defectReplceId, String defectReplceName, String returnType, String replceType,
			String processState, String supCode, String supName, String auditor, String createTime, String initiater,
			String initiateTime, String proDesc, Integer deleteFlag, String reasonsReturn, String resonDesc,
			String whNo, String whName, String prodNo, String commoNo, String commoName, String outWarehouseTime,
			String storageTime, String specification, String prodBarCode,String defectiveNumber,String poNo,String spNo,
			String deNo) {
		super();
		this.id = id;
		this.defectReplceId = defectReplceId;
		this.defectReplceName = defectReplceName;
		this.returnType = returnType;
		this.replceType = replceType;
		this.processState = processState;
		this.supCode = supCode;
		this.supName = supName;
		this.auditor = auditor;
		this.createTime = createTime;
		this.initiater = initiater;
		this.initiateTime = initiateTime;
		this.proDesc = proDesc;
		this.deleteFlag = deleteFlag;
		this.reasonsReturn = reasonsReturn;
		this.description = description;
		this.whNo = whNo;
		this.whName = whName;
		this.prodNo = prodNo;
		this.commoNo = commoNo;
		this.commoName = commoName;
		this.outWarehouseTime = outWarehouseTime;
		this.storageTime = storageTime;
		this.specification = specification;
		this.prodBarCode = prodBarCode;
		this.defectiveNumber = defectiveNumber;
		this.poNo = poNo;
		this.spNo = spNo;
		this.deNo = deNo;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDefectReplceId() {
		return defectReplceId;
	}

	public void setDefectReplceId(String defectReplceId) {
		this.defectReplceId = defectReplceId;
	}

	public String getDefectReplceName() {
		return defectReplceName;
	}

	public void setDefectReplceName(String defectReplceName) {
		this.defectReplceName = defectReplceName;
	}

	public String getReturnType() {
		return returnType;
	}

	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}

	public String getReplceType() {
		return replceType;
	}

	public void setReplceType(String replceType) {
		this.replceType = replceType;
	}

	public String getProcessState() {
		return processState;
	}

	public void setProcessState(String processState) {
		this.processState = processState;
	}

	public String getSupCode() {
		return supCode;
	}

	public void setSupCode(String supCode) {
		this.supCode = supCode;
	}

	public String getSupName() {
		return supName;
	}

	public void setSupName(String supName) {
		this.supName = supName;
	}

	public String getAuditor() {
		return auditor;
	}

	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getInitiater() {
		return initiater;
	}

	public void setInitiater(String initiater) {
		this.initiater = initiater;
	}

	public String getInitiateTime() {
		return initiateTime;
	}

	public void setInitiateTime(String initiateTime) {
		this.initiateTime = initiateTime;
	}

	public String getProDesc() {
		return proDesc;
	}

	public void setProDesc(String proDesc) {
		this.proDesc = proDesc;
	}

	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getReasonsReturn() {
		return reasonsReturn;
	}

	public void setReasonsReturn(String reasonsReturn) {
		this.reasonsReturn = reasonsReturn;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getWhNo() {
		return whNo;
	}

	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}

	public String getWhName() {
		return whName;
	}

	public void setWhName(String whName) {
		this.whName = whName;
	}

	public String getProdNo() {
		return prodNo;
	}

	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}

	public String getCommoNo() {
		return commoNo;
	}

	public void setCommoNo(String commoNo) {
		this.commoNo = commoNo;
	}

	public String getCommoName() {
		return commoName;
	}

	public void setCommoName(String commoName) {
		this.commoName = commoName;
	}

	public String getOutWarehouseTime() {
		return outWarehouseTime;
	}

	public void setOutWarehouseTime(String outWarehouseTime) {
		this.outWarehouseTime = outWarehouseTime;
	}

	public String getStorageTime() {
		return storageTime;
	}

	public void setStorageTime(String storageTime) {
		this.storageTime = storageTime;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public String getProdBarCode() {
		return prodBarCode;
	}

	public void setProdBarCode(String prodBarCode) {
		this.prodBarCode = prodBarCode;
	}

	public String getDefectiveNumber() {
		return defectiveNumber;
	}

	public void setDefectiveNumber(String defectiveNumber) {
		this.defectiveNumber = defectiveNumber;
	}

	public String getPoNo() {
		return poNo;
	}

	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}

	public String getSpNo() {
		return spNo;
	}

	public void setSpNo(String spNo) {
		this.spNo = spNo;
	}

	public String getDeNo() {
		return deNo;
	}

	public void setDeNo(String deNo) {
		this.deNo = deNo;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	public String getDefectiveReason() {
		return defectiveReason;
	}

	public void setDefectiveReason(String defectiveReason) {
		this.defectiveReason = defectiveReason;
	}
	
	
}